<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <base href="<%=basePath%>">
  <title>所有用户页面</title>
</head>

<body>
<h1>${qiaoxingyu}</h1>
<table  width="600" border="1" cellpadding="0" >
  <tr>
    <th>ID</th>
    <th>姓名</th>
    <th>电话</th>
    <th>操作</th>
  </tr>
  <c:forEach var="U" items="${userAll}"  >
    <form action="UpdateServlet" method="post">
      <tr>
        <td><input type="text" value="${U.id}" name="id" ></td>
        <td><input type="text" value="${U.name}" name="uname"></td>
        <td><input type="text" value="${U.phone}" name="uphone"></td>
        <td><a href="DeleteServlet?id=${U.id}">删除</a>  <input type="submit" value="更新"/></td>
      </tr>

    </form>
  </c:forEach>
  <tr>
    <td colspan="4"><a href="zhuce.jsp">新增</a> </td>
  </tr>
</table>
</body>
</html>
